/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1abstractclassdemo2;

/**
 *
 * @author apple
 */
public class Rectangle extends Shape{
    private double secondLength;

    public Rectangle() {
    }

    public Rectangle(double secondLength, double basicLength) {
        super(basicLength);
        this.secondLength = secondLength;
    }

    public double getSecondLength() {
        return secondLength;
    }

    public void setSecondLength(double secondLength) {
        this.secondLength = secondLength;
    }

    @Override
    public double getArea() {
        return this.basicLength*this.secondLength;
    }
    
    
}
